module.exports = {
    splitChunks: {
        chunks: "async",
        minSize: {
            javascript: 30*1000,
            style: 50*1000
        },
        maxSize: 0,
        minChunks: 1, 
        maxAsyncRequests: 5,
        maxInitialRequest: 3,
        automaticNameDelimiter: '-',
        name: true,
        cacheGroups: {
            vendors: {
                test: /[\\/]node_modules[\\/]/,
                priority: -10
            },
            default: {
                minChunks: 2,
                priority: -20,
                reuseExistingChunk: true
            }
        }
    }
}